/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package contatos.patterns.strategy.apoio;

import contatos.model.Contato;
import java.util.Comparator;

/**
 *
 * @author felipe
 */
public class ComparadorDeNomeContato implements Comparator<Contato>{

    @Override
    public int compare(Contato o1, Contato o2) {
         return o1.getNome().compareTo(o2.getNome());
    }
    
}
